#pragma once


#include "RaceState.h"


class AnimatedImage;
class IRaceController;
class IRenderingManager;
class IMeshStorage;

class Victory : public IRaceState
{
private:
   IRaceController& m_raceController;
   IRenderingManager& m_renderingManager;
   AnimatedImage& m_victoryText;
   AnimatedImage& m_defeatText;

   AnimatedImage* m_displayedImage;

   float m_time;

public:
   Victory(IRaceController& raceController, 
             IRenderingManager& renderingManager,
             IMeshStorage& meshStorage);
   ~Victory(void);

   void update(float timeElapsed);

   void activate();

   void deactivate();

   void processInput(UCHAR* keyBuffer, float timeElapsed);
};